projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b9794
)
widget: reset widget style after applying style classes from GtkBuilder
author
Cosimo Cecchi
<cosimoc@gnome.org>
Wed, 16 Mar 2011 14:50:03 +0000
(10:50 -0400)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Wed, 16 Mar 2011 14:52:32 +0000
(10:52 -0400)
Otherwise, the parsed style classes do not get propagated to the
children.
https://bugzilla.gnome.org/show_bug.cgi?id=644925
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index ce56072396f547ba7d69fe3e41278d56a571f33e..b74f9ee5d6dad4f6aa10a814ae2e385cd3469759 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-12996,6
+12996,8
@@
gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
for (l = style_data->classes; l; l = l->next)
gtk_style_context_add_class (context, (const gchar *)l->data);
+ gtk_widget_reset_style (GTK_WIDGET (buildable));
+
g_slist_free_full (style_data->classes, g_free);
g_slice_free (StyleParserData, style_data);
}